/// code : 200
/// msg : "success"
/// data : {"applyId":null,"basicV3ResultVO":{"isPushSuccess":1,"product":{"productName":"大牛牛","subTitle":"2.5万人借款成功","tags":"无抵押无审批,贷款秒到账,限时活动,30天免息","loanAmount":"200000","loanPeriod":"2-36","loanRate":"6","lastPlaces":5,"countdown":8,"defaultIcon":"http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/6D6FAF7ABC714937A3E03F8592756138.jpg"}}}

class OfflineOrganizationBean {
  OfflineOrganizationBean({
    this.code,
    this.msg,
    this.data,
  });

  OfflineOrganizationBean.fromJson(dynamic json) {
    code = json['code'];
    msg = json['msg'];
    data = json['data'] != null ? Data.fromJson(json['data']) : null;
  }

  num? code;
  String? msg;
  Data? data;

  OfflineOrganizationBean copyWith({
    num? code,
    String? msg,
    Data? data,
  }) =>
      OfflineOrganizationBean(
        code: code ?? this.code,
        msg: msg ?? this.msg,
        data: data ?? this.data,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = code;
    map['msg'] = msg;
    if (data != null) {
      map['data'] = data?.toJson();
    }
    return map;
  }
}

/// applyId : null
/// basicV3ResultVO : {"isPushSuccess":1,"product":{"productName":"大牛牛","subTitle":"2.5万人借款成功","tags":"无抵押无审批,贷款秒到账,限时活动,30天免息","loanAmount":"200000","loanPeriod":"2-36","loanRate":"6","lastPlaces":5,"countdown":8,"defaultIcon":"http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/6D6FAF7ABC714937A3E03F8592756138.jpg"}}

class Data {
  Data({
    this.applyId,
    this.basicV3ResultVO,
  });

  Data.fromJson(dynamic json) {
    applyId = json['applyId'];
    basicV3ResultVO = json['basicV3ResultVO'] != null ? BasicV3ResultVo.fromJson(json['basicV3ResultVO']) : null;
  }

  dynamic applyId;
  BasicV3ResultVo? basicV3ResultVO;

  Data copyWith({
    dynamic applyId,
    BasicV3ResultVo? basicV3ResultVO,
  }) =>
      Data(
        applyId: applyId ?? this.applyId,
        basicV3ResultVO: basicV3ResultVO ?? this.basicV3ResultVO,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['applyId'] = applyId;
    if (basicV3ResultVO != null) {
      map['basicV3ResultVO'] = basicV3ResultVO?.toJson();
    }
    return map;
  }
}

/// isPushSuccess : 1
/// product : {"productName":"大牛牛","subTitle":"2.5万人借款成功","tags":"无抵押无审批,贷款秒到账,限时活动,30天免息","loanAmount":"200000","loanPeriod":"2-36","loanRate":"6","lastPlaces":5,"countdown":8,"defaultIcon":"http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/6D6FAF7ABC714937A3E03F8592756138.jpg"}

class BasicV3ResultVo {
  BasicV3ResultVo({
    this.isPushSuccess,
    this.product,
  });

  BasicV3ResultVo.fromJson(dynamic json) {
    isPushSuccess = json['isPushSuccess'];
    product = json['product'] != null ? OfflineProduct.fromJson(json['product']) : null;
  }

  num? isPushSuccess;
  OfflineProduct? product;

  BasicV3ResultVo copyWith({
    num? isPushSuccess,
    OfflineProduct? product,
  }) =>
      BasicV3ResultVo(
        isPushSuccess: isPushSuccess ?? this.isPushSuccess,
        product: product ?? this.product,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['isPushSuccess'] = isPushSuccess;
    if (product != null) {
      map['product'] = product?.toJson();
    }
    return map;
  }
}

/// productName : "大牛牛"
/// subTitle : "2.5万人借款成功"
/// tags : "无抵押无审批,贷款秒到账,限时活动,30天免息"
/// loanAmount : "200000"
/// loanPeriod : "2-36"
/// loanRate : "6"
/// lastPlaces : 5
/// countdown : 8
/// defaultIcon : "http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/6D6FAF7ABC714937A3E03F8592756138.jpg"

class OfflineProduct {
  OfflineProduct({
    this.productName,
    this.subTitle,
    this.tags,
    this.loanAmount,
    this.loanPeriod,
    this.loanRate,
    this.lastPlaces,
    this.countdown,
    this.defaultIcon,
  });

  OfflineProduct.fromJson(dynamic json) {
    productName = json['productName'];
    subTitle = json['subTitle'];
    tags = json['tags'];
    loanAmount = json['loanAmount'];
    loanPeriod = json['loanPeriod'];
    loanRate = json['loanRate'];
    lastPlaces = json['lastPlaces'];
    countdown = json['countdown'];
    defaultIcon = json['defaultIcon'];
  }

  String? productName;
  String? subTitle;
  String? tags;
  String? loanAmount;
  String? loanPeriod;
  String? loanRate;
  num? lastPlaces;
  num? countdown;
  String? defaultIcon;

  OfflineProduct copyWith({
    String? productName,
    String? subTitle,
    String? tags,
    String? loanAmount,
    String? loanPeriod,
    String? loanRate,
    num? lastPlaces,
    num? countdown,
    String? defaultIcon,
  }) =>
      OfflineProduct(
        productName: productName ?? this.productName,
        subTitle: subTitle ?? this.subTitle,
        tags: tags ?? this.tags,
        loanAmount: loanAmount ?? this.loanAmount,
        loanPeriod: loanPeriod ?? this.loanPeriod,
        loanRate: loanRate ?? this.loanRate,
        lastPlaces: lastPlaces ?? this.lastPlaces,
        countdown: countdown ?? this.countdown,
        defaultIcon: defaultIcon ?? this.defaultIcon,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['productName'] = productName;
    map['subTitle'] = subTitle;
    map['tags'] = tags;
    map['loanAmount'] = loanAmount;
    map['loanPeriod'] = loanPeriod;
    map['loanRate'] = loanRate;
    map['lastPlaces'] = lastPlaces;
    map['countdown'] = countdown;
    map['defaultIcon'] = defaultIcon;
    return map;
  }
}
